package ooday01_homework;

public class Computer {
    String name;
    String cpu;
    String gpu;
    int c_id;

    Computer() {

    }

    Computer(String name, String cpu, String gpu, int c_id) {
        this.name = name;
        this.cpu = cpu;
        this.gpu = gpu;
        this.c_id = c_id;
    }

    void show() {
        System.out.println("这台电脑参数信息如下：");
        System.out.println("=================");
        System.out.println(name + "\n" + cpu + "\n" + gpu + "\n" + c_id);
        System.out.println("=================");
    }

    void on() {
        System.out.println(name + "开机了");
    }

    void off() {
        System.out.println(name + "关机了");
    }

    void fire() {
        System.out.println(name + "的" + gpu + "烤焦了");
    }

}
